 <style>
.ttl{width:80px;text-align:right;display-inline:block;}
.pop_cont_input{line-height:30px;} .pop_cont_input input{pading:0px 5px;} .pop_cont_input select{height:28px;}</style>
 <div class="pop_cont" style="width:500px;">
 <input type="hidden" value="<?php echo $id; ?>" id="editId" />
       <!--title-->
       <h3><?php echo $title;?><span class="falseBtn" style="color:red;float:right;font-size:18px;cursor:pointer;">X</span></h3>
       <!--content-->
       <div class="pop_cont_input">
        <ul>
        
        
         <li>
          <span class="ttl">角色名称</span>
          <input type="text" name="e-gname" id="e-gname" value="<?php echo $info['gname'];?>" placeholder="角色名称" class="textbox" style="padding:0px;" />
         </li>
       
        </ul>
       </div>
      
       <!--bottom:operate->button-->
       <div class="btm_btn">
        <input type="button" value="确认" class="input_btn trueBtn"/>
        <input type="button" value="关闭" class="input_btn falseBtn"/>
       </div>
      </div>
      
      <script>
      $(function(){
     	 
	       $(".trueBtn").unbind().bind("click",function(){
			 
	    	var that =this;
   		    var url="/admin/group/editData";
   		    var id=$("#editId").val();
   		    var gname=$("#e-gname").val();
   		    var param={
   				   id:id,
   				   gname:gname,
   				   
   				   sys_opt:'editData'//后台判断编辑操作
   		    };
			 AjaxRequest(url,param,function(data){
  			   if(data.err==0)
  			   {
  				   SuccessTiShi("操作成功");
  				   $(".pop_bg").fadeOut();
  				   $(".pop_bg").html('');
  				   myResearch();
  			   }
  			   else
  			   {
  				   ErrTiShi(data.msg);
  			   }
  		   	});
			 
		  });
		   //弹出：取消或关闭按钮
		   $(".falseBtn").unbind().bind("click",function(){
		
			 $(".pop_bg").fadeOut();
		   });
		   
 $(".firstDept").change(function(){
			   
			   var url="/admin/user/selectDeptChange";
	   		    var id=$(this).val();
	   		   
	   		    var param={
	   				   id:id
	   				   
	   		    };
			   AjaxRequest(url,param,function(data){
	  			   if(data.err==0)
	  			   {
	  				   var html='<option value="">--选择--</option>';
	  				   $.each(data.data,function(i,v){
	  					 html +='<option value="'+v.id+'">'+v.depname+'</option>'
	  				   })
	  				   $(".secondDept").html(html);
	  			   }
	  			   else
	  			   {
	  				   ErrTiShi("操作失败");
	  			   }
	  		   	});
			   
		   });
 	});
      </script>